package org.bot.plugin.web.util;

import org.openqa.selenium.WebElement;

public class ErrorCheck {

    public static void checkElement(WebElement webElement,String cmd){
        if (webElement == null){
            throw new RuntimeException(String.format("web中未找到节点【%s】",cmd));
        }
    }
}
